package com.jason.fingerprint.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.jason.fingerprint.service.InitService;

/**
 * Created by Administrator on 2016/6/14 0014.
 */
public class InitBroadcastReceiver extends BroadcastReceiver {

    public static final String ACTION_REPEAT_UPLOAD = "action_repeat_upload";

    private static final String TAG = InitBroadcastReceiver.class.getSimpleName();

    @Override
    public void onReceive(Context context, Intent intent) {
        Log.i(TAG,intent.getAction());
        Intent i = new Intent(context, InitService.class);
        i.setAction(InitService.ACTION_REPEAT_UPLOAD);
        context.startService(i);
    }
}
